
COMMONDIR	  			:= .
SDKDIR            := /usr/local/cudasdk2.3/shared
CUDA_INSTALL_PATH := /usr/local/cuda

NVCC       := $(CUDA_INSTALL_PATH)/bin/nvcc
# use the --device-emulation flag for emulating GPU on the CPU

CC         := gcc -W -Wall -Wimplicit -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wmultichar -Wtrigraphs -Wpointer-arith -Wcast-align -Wreturn-type -Wno-unused-function  -fno-strict-aliasing
LINK       := g++ -fPIC -W -Wall -Wimplicit -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wmultichar -Wtrigraphs -Wpointer-arith -Wcast-align -Wreturn-type -Wno-unused-function  -fno-strict-aliasing

NVCCFLAGS  := -O3
INCLUDES   := -I. -I$(CUDA_INSTALL_PATH)/include  -I$(SDKDIR)/inc -I$(COMMONDIR)
LIBS       := -L$(CUDA_INSTALL_PATH)/lib64 -L$(SDKDIR)/lib/linux -lGL -lcudart

